package org.bling.star.common.command;

import org.bling.star.common.model.UserInfo;

public class ClientCommand extends BaseCommand {
    private static final long serialVersionUID = -1471009636844849563L;
    private ConnectToken token;
    private UserInfo userInfo;

    public ClientCommand() {
    }

    public ConnectToken getToken() {
        return this.token;
    }

    public UserInfo getUserInfo() {
        return this.userInfo;
    }

    public void setToken(ConnectToken token) {
        this.token = token;
    }

    public void setUserInfo(UserInfo userInfo) {
        this.userInfo = userInfo;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof ClientCommand)) return false;
        final ClientCommand other = (ClientCommand) o;
        if (!other.canEqual(this)) return false;
        final Object this$token = this.getToken();
        final Object other$token = other.getToken();
        if (this$token == null ? other$token != null : !this$token.equals(other$token)) return false;
        final Object this$userInfo = this.getUserInfo();
        final Object other$userInfo = other.getUserInfo();
        return this$userInfo == null ? other$userInfo == null : this$userInfo.equals(other$userInfo);
    }

    protected boolean canEqual(final Object other) {
        return other instanceof ClientCommand;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $token = this.getToken();
        result = result * PRIME + ($token == null ? 43 : $token.hashCode());
        final Object $userInfo = this.getUserInfo();
        result = result * PRIME + ($userInfo == null ? 43 : $userInfo.hashCode());
        return result;
    }

    public String toString() {
        return "ClientCommand(token=" + this.getToken() + ", userInfo=" + this.getUserInfo() + ")";
    }
}
